<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-expense-edit" th:object="${exaExpense}">
        <input name="eId" th:field="*{eId}" type="hidden">
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">假条类型：</label>
            <div class="col-sm-8">
                <select name="eType" th:with="type=${@dict.getType('expense_eType')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}">
                </select>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">报销原因	：</label>
            <div class="col-sm-8">
                <input name="eReason" th:field="*{eReason}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">报销申请时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="eTimeStart" th:value="${#dates.format(exaExpense.eTimeStart, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                </div>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">报销金额：</label>
            <div class="col-sm-8">
                <input name="eMoney" th:field="*{eMoney}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请人：</label>
            <div class="col-sm-8">
                <input name="eTheHeir" th:field="*{eTheHeir}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8">
                <input name="eCreator" th:field="*{eCreator}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请人部门：</label>
            <div class="col-sm-8">
                <input name="eDepa" th:field="*{eDepa}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请人头像：</label>
            <div class="col-sm-8">
                <input name="ePicture" th:field="*{ePicture}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">文件上传凭证：</label>
            <div class="col-sm-8">
                <input name="eRemark" th:field="*{eRemark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">报销状态：</label>
            <div class="col-sm-8">
                <div class="radio-box">
                    <select name="eStatus" th:with="type=${@dict.getType('exa_expense_stutas')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{eStatus}">
                        </option>
                    </select>
                </div>
                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">审批意见：</label>
            <div class="col-sm-8">
                <input name="eOpinion" th:field="*{eOpinion}" class="form-control" type="text">
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "ruoyi/expense";
    $("#form-expense-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-expense-edit').serialize());
        }
    }

    $("input[name='eTimeStart']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>